﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace COFE.Web.Services
{
    /// <summary>
    ///  Interface for services that enables looking up an entry by using file paths.
    /// </summary>
    [ServiceContract]
    public interface ILookupServices
    {
        /// <summary>
        /// Search for an entry using a path. (with or without directoryLister key, e.g. "{TEMP}\Bug" ).
        /// Redirect to the entry. (see IEntryServices)
        /// </summary>
        /// <param name="path"></param>
        [OperationContract]
        [WebGet(UriTemplate = "?path={path}&rel={rel}&trail={trail}&json={json}")]
        void Lookup(string path, string rel, string trail, string json);
    }
}
